package spindles.gwt.shared;

import java.util.ArrayList;
import java.util.List;

public class SleepDTO extends DTO {	
	
	private String date;
	
	private int samplingRate;
	
	private long personID;
	
	/**	 
	 * @gwt.typeArgs <spindles.gwt.shared.SleepPartDTO>
	 */
	private List sleepParts = new ArrayList();
	
	public SleepDTO(){}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}
	
	public long getPersonID() {
		return personID;
	}

	public void setPersonID(long personID) {
		this.personID = personID;
	}

	public int getSamplingRate() {
		return samplingRate;
	}

	public void setSamplingRate(int samplingRate) {
		this.samplingRate = samplingRate;
	}

	public List getSleepParts() {
		return sleepParts;
	}

	public void setSleepParts(List sleepParts) {
		this.sleepParts = sleepParts;
	}

	public String[] toRecord() {		
		return new String[]{getId(), date, String.valueOf(samplingRate)};
	}

}
